// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.common.model.PageSearch;
import com.fowo.api.entity.NavLogisticsChannel;
import com.fowo.api.model.nav.logistics.channel.NavLogisticsChannelItemVo;
import com.fowo.api.model.nav.logistics.channel.NavLogisticsChannelItemVoPages;
import com.fowo.api.model.nav.logistics.channel.NavLogisticsChannelSearchParamPo;
import com.fowo.api.model.nav.logistics.channel.NavLogisticsChannelSelectParams;
import com.fowo.api.model.nav.logistics.channel.NavLogisticsChannelSelectResult;
import com.fowo.api.model.nav.logistics.channel.NavLogisticsChannelVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface NavLogisticsChannelMapper
  extends BaseMapper<NavLogisticsChannel> {
  Page<NavLogisticsChannelItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") NavLogisticsChannelSearchParamPo search
  );
  List<OptionItem<NavLogisticsChannelItemVo>> searchOptions(
    @Param("search") NavLogisticsChannelSearchParamPo search
  );
  List<NavLogisticsChannelItemVo> search(
    @Param("search") NavLogisticsChannelSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") NavLogisticsChannelSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(
    @Param("search") NavLogisticsChannelSearchParamPo search
  );
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") NavLogisticsChannelSearchParamPo search);
  Long getIdByExpressName(@Param("expressName") String expressName);

  List<Long> getIdsByExpressName(@Param("list") List<String> list);

  String getExpressNameById(@Param("id") Long id);

  List<Map<String, Object>> getExpressNameByIds(@Param("ids") List<Long> ids);
  NavLogisticsChannelVo selectVoById(@Param("id") Long id);
  /**
   * 选择视图 总数
   */
  int SelectTotal(@Param("params") NavLogisticsChannelSelectParams params);
  /**
   * 选择视图（分页）
   */
  Page<NavLogisticsChannelSelectResult> selectPage(
    @Param("page") Page page,
    @Param("params") NavLogisticsChannelSelectParams params
  );
  /**
   * 查询 物流商编号 分页下属列表
   */
  List<NavLogisticsChannelItemVoPages> selectPagesByNavLogisticsProviderId(
    @Param("search") NavLogisticsChannelSearchParamPo search
  );
}
